package d0316;

public class CreatThreadByExtends  extends Thread{
    public void run() {
        System.out.println("CreatThreadByExtends is running");
        System.out.println(currentThread().getName());
    }

    public static void main(String[] args) {
        CreatThreadByExtends creatThreadByExtends =new CreatThreadByExtends();
        CreatThreadByExtends creatThreadByExtends2 =new CreatThreadByExtends();
        creatThreadByExtends.start();//正确
    }
}